package com.atguigu.gulimall.ware.excption;

public class NostockException extends RuntimeException{
 private Long skuId;

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    /**
     * Constructs a new runtime exception with {@code null} as its
     * detail message.  The cause is not initialized, and may subsequently be
     * initialized by a call to {@link #initCause}.
     */
    public NostockException(Long skuId) {
        super("商品:"+skuId+"没有库存了");
    }
}
